<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">统计管理</h1>
</div>
<toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            渠道统计
        </div>
        <div class="panel-body b-b b-light">
            <div class="form-group pull-in clearfix" ng-controller="DatepickerDemoCtrl">
                <div class="col-sm-2">
                    <label><font><font>开始时间:</font></font></label>
                    <p class="input-group">
                        <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                  </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="channellistviewData.StartDate"
                            is-open="opened" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-2">
                    <label><font><font>结束时间:</font></font></label>
                    <p class="input-group">
                        <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open1($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                  </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open1($event)" ng-model="channellistviewData.EndDate"
                            is-open="opened1" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-6">
                    <button class="btn btn-info btn-addon" style="margin-top:25px" ng-if='!graybtn' ng-click="querydata()">查询</button>
                    <button class="btn btn-light btn-addon" style="margin-top:25px" ng-if='graybtn'>查询</button>
                    <a download="{{excelname}}" style="margin-top:25px" href="javascript:;" class="btn btn-info btn-addon" target="_blank" ng-if='exportshow' onclick="return ExcellentExport.excel(this, 'tableexcel', 'Sheet Name Here');">导出</a>

                </div>
            </div>
        </div>
        <form role="form" class="m-l-md m-t-md">
            <span>选择渠道：</span>
            <label class="i-checks m-r-md m-b-md" ng-repeat="menu in SourceTypes">
                <input type="checkbox" ng-model="oneAtATime" name="menucheckout" ng-value="menu.Id">
                <i></i>
                {{menu.Description}}
            </label>
            <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="selectAll()">全选</button>
        </form>
        <div id="myTable" class="table-responsive">
        </div>
    </div>
</div>